package com.foryou.wechat.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Created by Lee.
 */
@Data
@TableName("v_user_background")
@NoArgsConstructor
public class UserBackgroundEntity extends BaseEntity {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private String url;
    private int enabled;

    public UserBackgroundEntity(String url) {
        this.url = url;
    }

    public UserBackgroundEntity(Long id, int enabled) {
        this.id = id;
        this.enabled = enabled;
    }
}
